package creational.factory_method;

/**
 * @ClassName: MainTest
 * @Description: 测试类
 * @Author: liu-hao
 * @Date: 2023-05-19 22:52
 * @Version: 1.0
 **/
public class MainTest {
    public static void main(String[] args) throws Exception {
        CarFactory factory = new BmwFactory();
        Car car = factory.driverCar();
        car.drive();
    }
}
